home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
ndr2.exe
/
NETQ.ASM
< prev
next >
Wrap
Assembly Source File
|
1993-09-02
|
2KB
|
54 lines
/****************************************************************************
Those interested in subscribing should contact RoseWare via:
CompuServe: 76711,110
Internet: 76711.110@compuserve.com
Phone: (703) 799-2509
Fax: (703) 799-8041
BBS: (703) 799-2536
US Mail: P.O. Box 257
Mount Vernon, VA 22121-0257
Also see the file SUBSCRIB.TXT in this ZIP file...
****************************************************************************/
Contents:
Brett Warthen's code to open the NETQ: device. According to Brett, "There
seems to be a problem with some versions of the NetWare shells, and most
definitely with the VLMs, where you have to make your current drive a
network drive in order to open NETQ.
You need to use a NetWare specific API call...Int 21h, AX=E900h, DX=drive #
(A=0, B=1, etc)...and return if bit 0 or 1 is set, then it is a network
drive.
Here's some code that I'm using for this purpose...
mov ah,19h
int 21h
push ax ; push current drive # on stack
xor dx,dx ; start with drive A
@@:
mov ax,0E900h
int 21h
and ah,3
jnz @F ; got it
inc dx
cmp dx,26
jae @F ; we failed...this program doesn't handle this condition
jmp @B
@@:
mov ah,0Eh ; DX contains first network drive
int 21h ; ...make it current
; Open NETQ here
pop dx ; restore current drive...we saved on stack
mov ah,0Eh
int 21h